sync: align SDK with CLI 2.1.148#53
Open
guess wants to merge 1 commit into
Open
Conversation
Closes a 72-version gap (2.1.76 → 2.1.148) across five areas: Message types: add 8 missing system message subtypes (api_retry, task_updated, session_state_changed, notification, mirror_error, permission_denied, plugin_install, memory_recall) bringing coverage from 73% to 100% of the SDKMessage union. Content blocks: add advisor_tool_result to ServerToolResultBlock, create SearchResultBlock for round-tripped search results. Control protocol: add background_tasks, get_context_usage, and get_session_cost outbound requests with Session public APIs. Complete the elicitation inbound handler with on_elicitation callback support. Options: add include_hook_events, exclude_dynamic_prompt_sections, title, forward_subagent_text, and tool_aliases for TS/Python SDK parity. Version: bump @default_cli_version to 2.1.148.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@default_cli_version2.1.76 → 2.1.148 (72 patch versions)advisor_tool_resultmapped to ServerToolResultBlock, newSearchResultBlockfor round-tripped search resultsbackground_tasks,get_context_usage,get_session_costoutbound requests with public APIs; completedelicitationinbound handler withon_elicitationcallbackinclude_hook_events,exclude_dynamic_prompt_sections,title,forward_subagent_text,tool_aliasesfor TS/Python SDK parityTest plan
mix qualitypasses (compile, format, credo, dialyzer)Session.background_tasks/2,Session.context_usage/1,Session.session_cost/1against live CLI